import axios from 'axios';
// import store from '@/store';
// import router from '@/router'

const axiosInstance = axios.create({
    timeout: 30000,
    withCredentials: false
})

axiosInstance.interceptors.request.use(
    config => {  
        // 在请求头中添加自定义字段  
        config.headers['X-SYSTEM'] = 'saas'; 
        config.headers['X-Access-Token'] = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOjEsImV4cCI6MTcyMjgwNjQ4MCwicGxhdGZvcm0iOjIsInVzZXJuYW1lIjoiMTUwNzMxNzEzMjAifQ.2Xp-_WFgOxhB_gWrTbsJf9xsgmyLfnVBSMOto7dcqTs';  
        return config;  
      },  
      error => {  
        // 对请求错误做些什么  
        return Promise.reject(error);  
      }  
)

axiosInstance.interceptors.response.use()

export default axiosInstance